<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $this->view->journies = JourneyTable::getInstance()-> getAvailableJournies();
    }
    
    public function detailsAction()
    {
        $id = $this->_getParam("id");
       if(!$id || !$this->view->Details = JourneyTable::getInstance()-> getSubscribersAndFollower($id))
       {
          $this->view->Details = "No Data Found.";
       }
    }    
}

